package utils

func GetSexText(sex int) string {
	sexs := map[int]string{
		0: "保密",
		1: "男",
		2: "女",
	}
	sex_text, exists := sexs[sex]
	if exists == false {
		sex_text = sexs[0]
	}
	return sex_text
}

func GetAvatar(avatar string) string {
	if avatar == "" {
		avatar = "/static/images/avatar.png"
	}
	return avatar
}
